﻿using System.Windows.Interactivity;
using System.Windows.Controls;
namespace AllBots.Behaviour
{
    public class UpdateBindingBehaviour : TriggerAction<TextBox>
    {
        protected override void Invoke(object parameter)
        {
            AssociatedObject.GetBindingExpression(TextBox.TextProperty).UpdateSource();
        }
    }
}
